package Day21.面向对象测试;

public  class Demo3 extends Demo {
    private static int num;
    public Demo3(){
        super();//调用父类的构造方法
    }
    public Demo3(String str){
        this();//调用本类构造方法
    }

    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = "abc";
        String s3 = new String("abc");
        System.out.println(s1==s2);//true
        System.out.println(s1.equals(s2));//true
        System.out.println(s1==s3);//false
        System.out.println(s1.equals(s3));//true
        System.out.println(1%2);
    }

    public void test1(){

        test();
        test2();
    }
    public static void test2(){

    }


}
